Skip to content

When adding attachments to emails, input streams are closed before being used#879

Closed
itisnes-k2b wants to merge 3 commits into
genexuslabs:masterfrom
itisnes-k2b:master
Closed

When adding attachments to emails, input streams are closed before being used#879
itisnes-k2b wants to merge 3 commits into
genexuslabs:masterfrom
itisnes-k2b:master

Conversation

@itisnes-k2b

Copy link
Copy Markdown

When using the legacy SMTPSession implementation (necessary in our case) the input stream used to read the attachments' content is closed prior to being used.

The problem seems to have been introduced when fixing security issues, probably an automated tool indicated that the streams were not being closed.

The fix moves the finally block that contains the close operation so that the stream usage occurs before that block.

@genexusbot

Copy link
Copy Markdown
Collaborator

Waiting from someone from the organization to review this

tomas-sexenian added a commit that referenced this pull request Jul 8, 2024
Changes implemented in client generated PR #879
@tomas-sexenian

Copy link
Copy Markdown
Contributor

Closing this PR as PR's from outside the organization do not have access to our Github secrets and variables and therefore automatic checks cannot run. Implementing and referencing this changes in PR #882

tomas-sexenian added a commit that referenced this pull request Jul 19, 2024
Changes implemented in client generated PR #879

(cherry picked from commit cbc0a11)
tomas-sexenian added a commit that referenced this pull request Aug 19, 2024
Changes implemented in client generated PR #879
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants